import request from '@/utils/request'

// 查询普测业务信息列表
export function listTestbusiness(query) {
  return request({
    url: '/system/testbusiness/list',
    method: 'get',
    params: query
  })
}

// 查询普测业务信息详细
export function getTestbusiness(testbusinessId) {
  return request({
    url: '/system/testbusiness/' + testbusinessId,
    method: 'get'
  })
}

// 新增普测业务信息
export function addTestbusiness(data) {
  return request({
    url: '/system/testbusiness',
    method: 'post',
    data: data
  })
}

// 修改普测业务信息
export function updateTestbusiness(data) {
  return request({
    url: '/system/testbusiness',
    method: 'put',
    data: data
  })
}

// 删除普测业务信息
export function delTestbusiness(testbusinessId) {
  return request({
    url: '/system/testbusiness/' + testbusinessId,
    method: 'delete'
  })
}
